import styled from "styled-components"

export const RightWrapper = styled.div`
  flex: 1;
  display: flex;
  justify-content: flex-end;

  .btns {
    display: flex;
    align-items: center;
    box-sizing: border-box;

    .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 22px;
      width: 58px;
      height: 42px;
      font-size: ${(props) => props.theme.text.textSize};
      font-weight: 700;
      color: ${(props) =>
        props.theme.isAlpha ? "#fff" : props.theme.text.primaryTextColor};
      /* (props) => props.theme.text.primaryTextColor */
      cursor: pointer;
      position: relative;
      left: -3px;
      right: -3px;

      // 表示 当前样式
      &:hover {
        /* #f5f5f5 */
        background-color: ${(props) =>
          props.theme.isAlpha ? "#bbb" : "#f5f5f5"};
      }
    }
  }

  .profile {
    position: relative;
    margin-right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 77px;
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 25px;
    background-color: #fff;
    cursor: pointer;
    color: ${(props) => props.theme.text.primaryTextColor};

    ${(props) => props.theme.mixin.boxShadow}

    .panel {
      position: absolute;
      top: 54px;
      right: 0;
      width: 210px;
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
      color: #666;
      display: flex;
      flex-direction: column;

      .top,
      .bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        margin: 10px;
        .item {
          height: 40px;
          line-height: 40px;
          padding: 0 14px;

          &:hover {
            background-color: #f5f5f5;
          }
        }
      }

      .top {
        border-bottom: 1px solid #ddd;
      }
    }
  }
`
